﻿<Controls:MetroWindow 
        x:Class="Shoozla.MainView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        xmlns:s="clr-namespace:Shoozla"
        xmlns:sv="clr-namespace:Shoozla.View"
        xmlns:svm="clr-namespace:Shoozla.ViewModel"
        Title="Shoozla" Height="689" Width="1017"     
        AllowDrop="True"
        WindowStartupLocation="CenterScreen" VerticalAlignment="Stretch" UseLayoutRounding="False" ShowIconOnTitleBar="True" DragEnter="MetroWindow_DragEnter" DragLeave="MetroWindow_DragLeave" DragOver="MetroWindow_DragOver" DragDrop.Drop="MetroWindow_Drop">

    <!--<Window.TaskbarItemInfo>
        <TaskbarItemInfo x:Name="progressBarTaskBar" ProgressState="Normal" ProgressValue="0">
        </TaskbarItemInfo>
    </Window.TaskbarItemInfo>-->
    
    <DockPanel x:Name="mainDP" IsItemsHost="False" OverridesDefaultStyle="False" UseLayoutRounding="True">

        <Border DockPanel.Dock="Top" BorderThickness="0">
            <WrapPanel>          
                <Button Command="{Binding Path=CmdOpenFolder}" Width="70" Height="70" ToolTip="Add folder to display" Background="{DynamicResource AccentColorBrush}" >
                    <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
                        <Controls:MetroImage HorizontalAlignment="Center" Source="{StaticResource appbar_add}" Height="45" />
                        <TextBlock HorizontalAlignment="Center">Folder</TextBlock>
                    </StackPanel>
                </Button>
                <Button Command="{Binding Path=CmdSearch}" Width="70" Height="70" ToolTip="Search covers" Background="{DynamicResource AccentColorBrush}" >
                    <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
                        <Controls:MetroImage HorizontalAlignment="Center" Source="{StaticResource appbar_magnify}" Height="45" />
                        <TextBlock HorizontalAlignment="Center">Artworks</TextBlock>
                    </StackPanel>
                </Button >
                <Button x:Name="SaveBT" Command="{Binding Path=CmdSave}" Width="70" Height="70" ToolTip="Save" Background="{DynamicResource AccentColorBrush}">
                    <StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Center">
                        <Controls:MetroImage HorizontalAlignment="Center" Source="{StaticResource appbar_disk}" Height="45" />
                        <TextBlock HorizontalAlignment="Center">Save</TextBlock>
                    </StackPanel>
                </Button >
                                
            </WrapPanel>
        </Border>
        <StatusBar DockPanel.Dock="Bottom" Height="34">          
       
            <TextBlock Margin="0,0,0,0" >Mp3: </TextBlock>
            <TextBlock Margin="2,0,0,0" Name="mp3FilesTB" Text="{Binding Source={x:Static s:App.StatisticLogger}, Path=TotalFiles}" /> 
            <Separator />                      
            <Button Width="55" Command="{Binding Path=CmdOptions}">Options</Button>
            <Button Width="55" Command="{Binding Path=CmdOpenFLog}">Log</Button>
            <Button Width="55" Command="{Binding Path=CmdAbout}">About</Button>
            <TextBlock Margin="2,0,0,0" Text="{Binding CurrentFolder}" />
        </StatusBar>
            <!--<s:FolderExplorerControl x:Name="mainFE" SelectetdFolderChanged="mainFE_SelectedFolderChanged" AddedFolders="mainFE_AddedFolderToView" RemovedFolder="mainFe_RemovedFolderFromView" DockPanel.Dock="Left" MinWidth="250" />-->

        <ContentPresenter x:Name="mainContentSP" Content="{Binding Path=CurrentView}" />
       
    </DockPanel>
</Controls:MetroWindow>
